<?php if(!class_exists('raintpl')){exit;}?><select class = "category">
	<option value = ""><?php echo $dsfm_category_text;?></option>
	<?php $counter1=-1; if( isset($dsfm_category_data) && is_array($dsfm_category_data) && sizeof($dsfm_category_data) ) foreach( $dsfm_category_data as $key1 => $value1 ){ $counter1++; ?>
		<?php if( $dsfm_selcat == $key1 ){ ?>
			<option value = "<?php echo $key1;?>" selected><?php echo $value1;?></option>
		<?php }else{ ?>
			<option value = "<?php echo $key1;?>"><?php echo $value1;?></option>
		<?php } ?>
	<?php } ?>
</select>

<script>
$(function() {
	$(".category").change(function(){
		window.location.href = "?dsfm_selcat="+$(this).val();
	});
});
</script>